/**
 * 
 */
package com.module.bp.engine;

import com.dalonedrau.d20.Diceroller;

/**
 * @author Donald
 *
 */
public class BPRand {
	/** the one and only instance of the <code>BPRand</code> class. */
	private static BPRand	instance;
	/**
	 * Gives access to the singleton instance of {@link BPRand}.
	 * @return {@link BPRand}
	 */
	public static BPRand getInstance() {
		if (BPRand.instance == null) {
			BPRand.instance = new BPRand();
		}
		return BPRand.instance;
	}
	public int rollD6() {
		return Diceroller.getInstance().rolldX(6);
	}
}
